﻿namespace Snipps.Infrastructure.Services
{
    using System;

    public interface IThreadingService
    {
        Action QueueExecution<T>(Func<T> work, Action<T> completionCallback, Action<Exception> exceptionCallback);

        Action QueueExecution(Action work, Action completionCallback, Action<Exception> exceptionCallback = null);
    }
}